<template>
  <div>
    <el-date-picker
      v-model="value"
      type="datetime"
      placeholder="选择日期时间"
      :picker-options="pickerOptions"
    ></el-date-picker>
    <el-button type="primary" @click="handleClick">点击</el-button>
  </div>
</template>

<script setup>
import { ref } from "vue";
const value = ref([]);

const pickerOptions = ref({
  disabledDate(time) {
    return time.getTime() < Date.now() - 8.64e7;
  },
});
function handleClick(params) {}
</script>

<style lang="less" scoped></style>
